package com.juben.svr.mapper;

import com.juben.svr.domain.User;
import com.juben.svr.domain.role;
import org.apache.ibatis.annotations.Mapper;
<<<<<<< HEAD
import org.apache.ibatis.annotations.Param;
=======
>>>>>>> 38a1dbe3941ebf5713fbf4c6d3dbf69154c425d3

import java.util.List;

@Mapper
public interface usermapper {
    User getUserById(int uid);

//    User userlogin1(String account);
//    User userlogin2(String phone);

    // 账号登录
    User getUserByAccount(String account);
    // 手机号登录
    User getUserByPhone(String phone);

    Boolean updateUserInfo(User user);
    // 注册
    Boolean addUser(User user);

    List<role> getRoleList();

    boolean changePassword(User user);

<<<<<<< HEAD
    List<User> getUserList(@Param("list") List<Integer> list);

=======
>>>>>>> 38a1dbe3941ebf5713fbf4c6d3dbf69154c425d3

}
